package com.lhm.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Document("t_book")
public class Book {
    @Id
    private String id;//id
    private String uid;//用户id
    private String typeid;//类型id
    private String title;//标题
    private String matter;//主要内容
    private String detaid;//博客内容
    private Date time;//时间
    private int rum;//阅读数量

    @Override
    public String toString() {
        return "Book{" +
                "id='" + id + '\'' +
                ", uid='" + uid + '\'' +
                ", typeid='" + typeid + '\'' +
                ", title='" + title + '\'' +
                ", matter='" + matter + '\'' +
                ", detaid='" + detaid + '\'' +
                ", time=" + time +
                ", rum=" + rum +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getTypeid() {
        return typeid;
    }

    public void setTypeid(String typeid) {
        this.typeid = typeid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMatter() {
        return matter;
    }

    public void setMatter(String matter) {
        this.matter = matter;
    }

    public String getDetaid() {
        return detaid;
    }

    public void setDetaid(String detaid) {
        this.detaid = detaid;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public int getRum() {
        return rum;
    }

    public void setRum(int rum) {
        this.rum = rum;
    }
}
